import request from '@/utils/request'
import qs from 'qs'
// -------------------------------------------------- 安全 -------------------------------------------------- //
/**
 * @description: 安全-传感器列表
 * @export
 * @params {*}
 * @return {*}
 */
export const companyDeviceIOTList = (data) => {
  return request({
    url: '/admin/aq/DeviceManagement/companyDeviceIOTList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 安全-传感器详情
 * @export
 * @params {*}
 * @return {*}
 */
export const deviceIOTInfo = (data) => {
  return request({
    url: '/admin/aq/DeviceManagement/deviceIOTInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 *
 * @description: 安全-传感器详情-监测指标
 * @export
 * @return {Object}
 */
export function deviceIndexIOT(data) {
  return request({
    url: '/admin/RefData/deviceIndexIOT',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* @description: 安全-传感器详情-折线图数据
*
* @export
* @params {*}
* @return {*}
*/
export const historyMonitorLineChart = (data) => {
  return request({
    url: '/admin/aq/DeviceManagement/historyMonitorLineChart',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* @description: 安全-传感器详情-列表数据
*
* @export
* @params {*}
* @return {*}
*/
export const historyMonitorList = (data) => {
  return request({
    url: '/admin/aq/DeviceManagement/historyMonitorList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 安全-视频监控列表
 * @export
 * @params {*}
 * @return {*}
 */
export const allCreamListByCompany = (data) => {
  return request({
    url: '/admin/aq/AqMonitorCamera/allCreamListByCompany',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 安全-视频监控详情
 * @export
 * @params {*}
 * @return {*}
 */
export const creamInfoById = (data) => {
  return request({
    url: '/admin/aq/AqMonitorCamera/creamInfoById',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* 安全-视频监控详情-历史报警记录
*
* @export
* @params {*}
* @return {*}
*/
export const videoAlarmList = (data) => {
  return request({
    url: '/admin/aq/AqMonitorCamera/videoAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
// -------------------------------------------------- 环保 -------------------------------------------------- //
/**
 * @description: 环保-废水数据监控列表
 * @export
 * @params {*}
 * @return {*}
 */
export const waterMonitorDataList = (data) => {
  return request({
    url: '/admin/hb/hbMonitorLive/waterMonitorDataList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 环保-废气数据监控列表
 * @export
 * @params {*}
 * @return {*}
 */
export const airMonitorDataList = (data) => {
  return request({
    url: '/admin/hb/hbMonitorLive/airMonitorDataList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 环保-设备数据监控列表
 * @export
 * @params {*}
 * @return {*}
 */
export const deviceMonitorDataList = (data) => {
  return request({
    url: '/admin/hb/hbMonitorLive/deviceMonitorDataList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 环保-固废转运列表
 * @return {*}
 */
export const wasteGenerateDataList = (data) => {
  return request({
    url: '/admin/hb/hbWaste/wasteGenerateDataList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 环保-排口/指标/固危废下拉框-获取固危废类别下拉框
* @export
* @params {*}
* @return {*}
 */
export const wasteCategoryDrop = (data) => {
  return request({
    url: '/admin/hb/hbRefCode/wasteCategoryDrop',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 环保-排口/指标/固危废下拉框-根据固危废类别获取指标下拉框
* @export
* @params {*}
* @return {*}
 */
export const wasteDrop = (data) => {
  return request({
    url: '/admin/hb/hbRefCode/wasteDrop',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 环保-排口/指标/固危废下拉框-经办人下拉框
* @export
* @params {*}
* @return {*}
 */
export const handleUserDrop = (data) => {
  return request({
    url: '/admin/hb/hbRefCode/handleUserDrop',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 环保-固废贮存列表
 * @return {*}
 */
export const wasteStorageDataList = (data) => {
  return request({
    url: '/admin/hb/hbWaste/wasteStorageDataList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 环保-固废处置列表
 * @return {*}
 */
export const wasteHandleDataList = (data) => {
  return request({
    url: '/admin/hb/hbWaste/wasteHandleDataList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 环保-视频监控列表
 * @export
 * @params {*}
 * @return {*}
 */
export const videoDataList = (data) => {
  return request({
    url: '/admin/hb/hbMonitorLive/videoDataList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 环保-视频监控详情
 * @export
 * @params {*}
 * @return {*}
 */
export const videoDataInfo = (data) => {
  return request({
    url: '/admin/hb/hbMonitorLive/videoDataInfo',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * @description: 环保-视频监控详情-历史报警记录
 * @export
 * @params {*}
 * @return {*}
 */
export const videoInfoAlarmList = (data) => {
  return request({
    url: '/admin/hb/hbMonitorLive/videoInfoAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
// -------------------------------------------------- 消防 -------------------------------------------------- //
/**
* 消防-电气火灾
*
* @export
* @params {*}
* @return {*}
*/
export const electricalFireData = (data) => {
  return request({
    url: '/admin/xf/xfMonitorData/electricalFireDataIOT',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* 消防-消防水
*
* @export
* @params {*}
* @return {*}
*/
export const waterMonitorData = (data) => {
  return request({
    url: '/admin/xf/xfMonitorData/waterMonitorDataIOT',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* 消防-可燃气体
*
* @export
* @params {*}
* @return {*}
*/
export const combustibleGasData = (data) => {
  return request({
    url: '/admin/xf/xfMonitorData/combustibleGasDataIOT',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* 消防-应急照明和疏散指示
*
* @export
* @params {*}
* @return {*}
*/
export const lightingEvacuation = (data) => {
  return request({
    url: '/admin/xf/xfMonitorData/lightingEvacuationIOT',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* 消防-消防广播
*
* @export
* @params {*}
* @return {*}
*/
export const fireBroadcastData = (data) => {
  return request({
    url: '/admin/xf/xfMonitorData/fireBroadcastDataIOT',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
* 消防-气体灭火
*
* @export
* @params {*}
* @return {*}
*/
export const gasExtinguishingData = (data) => {
  return request({
    url: '/admin/xf/xfMonitorData/gasExtinguishingDataIOT',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 消防-视频监控
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const xfallCreamListByCompany = (data) => {
  return request({
    url: '/admin/xf/xfMonitorCamera/allCreamListByCompany',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 消防-视频监控详情
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const xfCreamInfoById = (data) => {
  return request({
    url: '/admin/xf/xfMonitorCamera/creamInfoById',
    method: 'POST',
    data: qs.stringify(data)
  })
}
/**
 * 消防-视频监控详情-历史报警记录
 *
 * @export
 * @params {*}
 * @return {*}
 */
export const xfVideoAlarmList = (data) => {
  return request({
    url: '/admin/xf/xfMonitorCamera/videoAlarmList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
// -------------------------------------------------- 消防 -------------------------------------------------- //
/**
* 获取能源监测数据列表
*
* @export
* @params {*}
* @return {*}
*/
export const getMonitorList = (data) => {
  return request({
    url: '/admin/ny/MonitorNew/monitorList',
    method: 'POST',
    data: qs.stringify(data)
  })
}
